Skip to content

REF: remove replace_list kludge #33445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 10, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

This sits on top of #33441

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks generally good

@@ -778,36 +778,32 @@ cdef class _Timedelta(timedelta):

if isinstance(other, _Timedelta):
ots = other
elif PyDelta_Check(other) or isinstance(other, Tick):
elif (is_timedelta64_object(other) or PyDelta_Check(other)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any performance implications of checking this first now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when we have a timedelta64 object we're avoiding a few unnecessary checks below (L784 of which occurs in python-space). otherwise we are delaying everything by the duration of a is_timedelta64_object call, which is small

@WillAyd WillAyd added the Timedelta Timedelta data type label Apr 10, 2020
@jreback jreback added this to the 1.1 milestone Apr 10, 2020
@jreback jreback added the Clean label Apr 10, 2020
@jreback
Copy link
Contributor

jreback commented Apr 10, 2020

can you rebase so easier to see the diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants